from rest_framework.routers import DefaultRouter
from django.conf.urls import url
from goods import views

urlpatterns = [
    #
    url(r'^goods/recommend/$', views.GoodsRecommendView.as_view()),
    url(r'^goods/category/$', views.CategoryGoodsView.as_view()),
    url(r'^category/(?P<pk>\d+)/$', views.CategoryDetailView.as_view()),
]

router = DefaultRouter()
router.register(r'goods', views.GoodsViewSet, base_name='goods')
urlpatterns += router.urls
